home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 - Inside Community Club / Acrobat Pro 6 D.bin / installer / Data1.cab / HTML2PDF.api / EXVW / 4501 < prev    next >
Encoding:
Text File  |  2003-05-15  |  4.9 KB  |  141 lines

  1. gStrDefaultColors            = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/DefaultColors';
  2. gStrText                    = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/Text';
  3. gStrLinks                    = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/Links';
  4. gStrBackground                = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/Background';
  5. gStrAltText                    = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/AltText';
  6. gStrForceSettings            = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/ForceSettings';
  7. gStrBackgroundOptions        = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/BackgroundOptions';
  8. gStrPageColors                = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/PageColors';
  9. gStrTableCellColors            = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/TableCellColors';
  10. gStrTileImgBackground        = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/TileImgBackground';
  11. gStrLineOptions                = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/LineOptions';
  12. gStrWrapLines                = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/WrapLines';
  13. gStrConvertImages            = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/ConvertImages';
  14. gStrUnderlineLinks            = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/UnderlineLinks';
  15. gStrMultimedia                = '$$$/Dialogs/HTML2PDF/HTMLSettings/General/Multimedia';
  16.  
  17. gColorTextWidth = max    ( zstring_width( zstring: gStrText )
  18.                         , zstring_width( zstring: gStrLinks )
  19.                         , zstring_width( zstring: gStrBackground )
  20.                         , zstring_width( zstring: gStrAltText )
  21.                         ) + max_char_width();
  22. gColorWellWidth = 22;
  23. gTestWidth1 = gColorTextWidth + gColorWellWidth + max_char_width() / 2;
  24.  
  25. gWrapEditWidth = max_char_width() * 3;
  26. gWrapTextWidth = zstring_width( zstring: gStrWrapLines );
  27. gTestWidth2 = (max_char_width() + gWrapEditWidth + gWrapTextWidth) / 2;
  28.  
  29. gColumnWidth = max( gTestWidth1, gTestWidth2 );
  30.  
  31. dialog( )
  32. {
  33.     view( align_children: align_left )
  34.     {
  35.         cluster( name: gStrDefaultColors )
  36.         {
  37.             view( align_children: align_row )
  38.             {
  39.                 view( align_children: align_row, width: gColumnWidth )
  40.                 {
  41.                     view( align_children: align_left, width: gColorTextWidth )
  42.                     {
  43.                         static_text( item_id: 'st01', name: gStrText, next_tab: 'colr' );
  44.                     }
  45.                     view( align_children: align_right )
  46.                     {
  47.                         button( item_id: 'colr', picture: true, height: 20, width: gColorWellWidth, next_tab: 'st02' );
  48.                     }
  49.                 }
  50.                 gap();
  51.                 view( align_children: align_row, width: gColumnWidth )
  52.                 {
  53.                     view( align_children: align_left, width: gColorTextWidth )
  54.                     {
  55.                         static_text( item_id: 'st02', name: gStrLinks, next_tab: 'link', next_tab: 'link' );
  56.                     }
  57.                     view( align_children: align_right )
  58.                     {
  59.                         button( item_id: 'link', picture: true, height: 20, width: gColorWellWidth, next_tab: 'st03' );
  60.                     }
  61.                 }
  62.             }
  63.             view( align_children: align_row )
  64.             {
  65.                 view( align_children: align_row, width: gColumnWidth )
  66.                 {
  67.                     view( align_children: align_left, width: gColorTextWidth )
  68.                     {
  69.                         static_text( item_id: 'st03', name: gStrBackground, next_tab: 'back' );
  70.                     }
  71.                     view( align_children: align_right )
  72.                     {
  73.                         button( item_id: 'back', picture: true, height: 20, width: gColorWellWidth, next_tab: 'st04' );
  74.                     }
  75.                 }
  76.                 gap();
  77.                 view( align_children: align_row, width: gColumnWidth )
  78.                 {
  79.                     view( align_children: align_left, width: gColorTextWidth )
  80.                     {
  81.                         static_text( item_id: 'st04', name: gStrAltText, next_tab: 'altt' );
  82.                     }
  83.                     view( align_children: align_right )
  84.                     {
  85.                         button( item_id: 'altt', picture: true, height: 20, width: gColorWellWidth, next_tab: 'pgcl' );
  86.                     }
  87.                 }
  88.             }
  89.             check_box(item_id: 'forc', name: gStrForceSettings );
  90.         }
  91.         cluster( name: gStrBackgroundOptions )
  92.         {
  93.             view( align_children: align_row )
  94.             {
  95.                 view( align_children: align_row, width: gColumnWidth )
  96.                 {
  97.                     check_box(item_id: 'pgcl', name: gStrPageColors, next_tab: 'tbcl' );
  98.                 }
  99.                 gap();
  100.                 view( align_children: align_row, width: gColumnWidth )
  101.                 {
  102.                     check_box(item_id: 'tbcl', name: gStrTableCellColors, next_tab: 'tile' );
  103.                 }
  104.             }
  105.             view( align_children: align_row )
  106.             {
  107.                 check_box(item_id: 'tile', name: gStrTileImgBackground, next_tab: 'wrap' );
  108.             }
  109.         }
  110.         cluster( name: gStrLineOptions )
  111.         {
  112.             view( align_children: align_row )
  113.             {
  114.                 check_box(item_id: 'wrap', name: gStrWrapLines, next_tab: 'wpln' );
  115.                 edit_text(item_id: 'wpln', width: gWrapEditWidth, next_tab: 'mmpu' );
  116.             }
  117.         }
  118.         cluster( name: gStrMultimedia )
  119.         {
  120.             view( align_children: align_row )
  121.             {
  122.                 popup( item_id: 'mmpu', width: 2 * gColumnWidth, next_tab: 'cimg' );
  123.             }
  124.         }
  125.         cluster( item_id:'misc', name:'Miscellaneous Settings' )
  126.         {
  127.             view( align_children: align_row )
  128.             {
  129.                 view( align_children: align_row, width: gColumnWidth )
  130.                 {
  131.                     check_box(item_id: 'cimg', name: gStrConvertImages, next_tab: 'ullk' );
  132.                 }
  133.                 gap();
  134.                 view( align_children: align_row, width: gColumnWidth )
  135.                 {
  136.                     check_box(item_id: 'ullk', name: gStrUnderlineLinks );
  137.                 }
  138.             }
  139.         }
  140.     }
  141. }